<?php

class Admin_ItoolsController extends Yaf_Controller_Abstract {

    private $_layout;

    public function init() {
        /* use layout */
        $this->_dispatcher = Yaf_Registry::get("dispatcher");
        $this->_layout = new LayoutPlugin('layout_iTools.phtml');
        $this->_dispatcher->registerPlugin($this->_layout);
    }

    public function IndexAction() {
        $sign = isset($_SESSION['info']) ? $_SESSION['info'] : "";
        if (empty($sign)) {
            header("Location:../admin_login");
            exit;
        } else {
            $this->_view->info = $sign;
        }
        /* layout */
        $this->_view->title = 'iTools用户数据统计';
        $this->_layout->meta_title = 'iTools用户数据统计';
    }

}
